newtonsoft json conditionally ignore property

50

newtonsoft json conditionally ignore property -

public bool ShouldSerializeINSERT_YOUR_PROPERTY_NAME_HERE()
{
    if(someCondition){
        return true;
    }else{
        return false;
    }
}

Comments

Submit
0 Comments